﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProjectFitus.Models.ArticleContent>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Brjostagjof.is | Forsíða
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%: ViewData["Message"] %></h2>    
    
     <%
        foreach (var n in System.Web.HttpRuntime.Cache["Global3NewestNews"] as IEnumerable<ProjectFitus.Models.NewsContent>)
        {
     %>
        <div class="news-box">
            <a href="/News/Details/<%: n.id %>"><%: n.title %></a>
            <h5><%: n.dateCreated %></h5>
            <p>
                <%= Server.HtmlDecode(n.introText) %>
            </p>
            <br style="clear:both;" />
        </div>
      <%  } %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="SideContent" runat="server">
                
</asp:Content>
